.class Lcom/xingbook/park/activity/dl;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/XingbiAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/dl;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 12

    const/16 v3, 0xc8

    const/4 v4, 0x0

    const/4 v7, 0x1

    const/4 v10, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/dl;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    move-object v9, v0

    check-cast v9, Lcom/xingbook/park/activity/XingbiAct;

    if-nez v9, :cond_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/xingbook/park/e/c;

    iget v1, p1, Landroid/os/Message;->what:I

    if-ne v1, v7, :cond_3

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->e()I

    move-result v1

    if-ne v1, v3, :cond_1

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->a()I

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    check-cast v0, Lcom/xingbook/b/q;

    invoke-static {v9, v0}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;Lcom/xingbook/b/q;)V

    move v7, v10

    :cond_1
    if-eqz v7, :cond_2

    const-string v0, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u52a0\u8f7d\u661f\u5e01\u4fe1\u606f\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    invoke-static {v9, v0, v10}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_2
    :goto_1
    invoke-static {v9, v10}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;Z)V

    goto :goto_0

    :cond_3
    iget v1, p1, Landroid/os/Message;->what:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_4

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->e()I

    move-result v1

    if-ne v1, v3, :cond_7

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->a()I

    move-result v0

    if-nez v0, :cond_7

    invoke-static {v9, v4}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;Lcom/xingbook/b/q;)V

    move v0, v10

    :goto_2
    if-eqz v0, :cond_2

    invoke-static {v9}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;)Lcom/xingbook/ui/af;

    move-result-object v0

    const-string v1, "\u5151\u6362\u4f1a\u5458"

    const-string v2, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u6210\u529f\u5151\u6362\u4f1a\u5458\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    const-string v3, "\u6211\u77e5\u9053\u4e86"

    move-object v5, v4

    move-object v6, v4

    move v8, v7

    invoke-virtual/range {v0 .. v8}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZ)V

    goto :goto_1

    :cond_4
    iget v1, p1, Landroid/os/Message;->what:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_2

    if-eqz v0, :cond_6

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->e()I

    move-result v1

    if-ne v1, v3, :cond_6

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->a()I

    move-result v1

    if-nez v1, :cond_6

    invoke-virtual {v0}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_6

    check-cast v0, Ljava/lang/String;

    const/16 v1, 0x2c

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    if-lez v2, :cond_6

    invoke-virtual {v0, v10, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v10}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v1

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v10}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v0

    if-le v1, v0, :cond_5

    move v11, v1

    move v1, v0

    move v0, v11

    :cond_5
    iget v2, p1, Landroid/os/Message;->arg1:I

    invoke-static {v9, v2, v1, v0}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;III)V

    move v0, v10

    :goto_3
    if-eqz v0, :cond_2

    invoke-static {v9}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;)Lcom/xingbook/ui/af;

    move-result-object v0

    iget v1, p1, Landroid/os/Message;->arg1:I

    invoke-static {v9, v1}, Lcom/xingbook/park/activity/XingbiAct;->a(Lcom/xingbook/park/activity/XingbiAct;I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u6210\u529f\u9886\u53d6\u661f\u5e01\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    const-string v3, "\u6211\u77e5\u9053\u4e86"

    move-object v5, v4

    move-object v6, v4

    move v8, v7

    invoke-virtual/range {v0 .. v8}, Lcom/xingbook/ui/af;->a(Ljava/lang/String;Ljava/lang/CharSequence;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;Landroid/view/View$OnClickListener;ZZ)V

    goto/16 :goto_1

    :cond_6
    move v0, v7

    goto :goto_3

    :cond_7
    move v0, v7

    goto :goto_2
.end method
